package chixing.day04;

/**
 * 内存的消耗一般是指堆内存的消耗
 * 1.new：开辟一块堆内存
 * 2.Company():初始化对象
 * 3.引用对象给该对内存
 */
public class CompanyTest {
    public static void main(String[] args) {
        //创建一个公司对象（Object）
//        Company company1 = new Company();
//        company1.companyId=101;
//        company1.companyName="京东";
//        company1.companyType="民营";
//        company1.companyAddress="北京中关村1号";
//        company1.companyEmpCount="5000-10000";
        Company company1 = new Company();
        company1.setCompanyId(101);
        company1.setCompanyName("京东");
        company1.setCompanyType("民营");
        company1.setCompanyAddress("北京中关村10号");
        company1.setCompanyEmpCount("5000-10000");
        System.out.println(company1.getCompanyId());
        System.out.println(company1.getCompanyName());
        System.out.println(company1.getCompanyType());
        System.out.println(company1.getCompanyAddress());
        System.out.println(company1.getCompanyEmpCount());



    }
}
